import { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/report/detail',
    method: 'post',
    response: ({ query }) => {
      return {
        code: 0,
        msg: '',
        data: {
          origin_detail: {
            stu_name: '张三',
            area_id: 1,
            area_name: '北京',
            year: 2023,
            subjects_choose: [
              {
                id: 1,
                name: '语文',
                en_name: 'chinese',
                subject_score: 150,
                amend_subject_score: 100,
                score: 90,
              },
              {
                id: 2,
                name: '数学',
                en_name: 'math',
                subject_score: 150,
                amend_subject_score: 100,
                score: 85,
              },
              {
                id: 3,
                name: '英语',
                en_name: 'english',
                subject_score: 150,
                amend_subject_score: 100,
                score: 82,
              },
              {
                id: 4,
                name: '物理',
                en_name: 'physics',
                subject_score: 100,
                amend_subject_score: 100,
                score: 75,
              },
              {
                id: 5,
                name: '化学',
                en_name: 'chemistry',
                subject_score: 100,
                amend_subject_score: 100,
                score: 68,
              },
              {
                id: 6,
                name: '生物',
                en_name: 'organism',
                subject_score: 100,
                amend_subject_score: 100,
                score: 90,
              },
            ],
          },
          report_detail: {
            title: '学业诊断与规划报告',
            stu_name: '张三',
            area_name: '北京',
            year: 2023,
            commit_time: '2023-05-12 11:00:00',
            planner: '李老师',
            origin_total_score: 400,
            trans_total_score: 490,
            select_subjects: ['物理', '化学', '生物'],
            summary: {
              data_year: 2022,
              cur_score: 490,
              cur_interval: '本科',
              cur_college_recommend: {
                shock: '浙江大学',
                stable: '北京理工',
                pocket: '山东理工',
              },
              improve_score: 90,
              target_score: 580,
              target_interval: '211',
              target_college_recommend: {
                shock: '浙江大学',
                stable: '北京理工',
                pocket: '山东理工',
              },
            },
            learn_stage: {
              graph: {
                x_points: [],
                y_points: [
                  {
                    x: 0,
                    y: 400,
                  },
                  {
                    x: 0,
                    y: 500,
                  },
                  {
                    x: 0,
                    y: 600,
                  },
                  {
                    x: 0,
                    y: 700,
                  },
                ],
                mark_points: [
                  {
                    x: 0,
                    y: 460,
                    label: '本科线',
                  },
                  {
                    x: 0,
                    y: 490,
                    label: '当前分数',
                  },
                  {
                    x: 0,
                    y: 560,
                    label: '211',
                  },
                  {
                    x: 0,
                    y: 620,
                    label: '985',
                  },
                ],
              },
              score: 490,
              message: '老师寄语',
            },
            exam_statistics: {
              number_statistics: [
                {
                  year: 2019,
                  number: 100000,
                },
                {
                  year: 2020,
                  number: 200000,
                },
                {
                  year: 2021,
                  number: 220000,
                },
                {
                  year: 2022,
                  number: 180000,
                },
              ],
              score_interval_distribution: {
                graph: {
                  x_points: [
                    {
                      x: 400,
                      y: 0,
                    },
                    {
                      x: 500,
                      y: 0,
                    },
                    {
                      x: 600,
                      y: 0,
                    },
                    {
                      x: 700,
                      y: 0,
                    },
                  ],
                  y_points: [
                    {
                      x: 0,
                      y: 400,
                    },
                    {
                      x: 0,
                      y: 1200,
                    },
                    {
                      x: 0,
                      y: 3500,
                    },
                    {
                      x: 0,
                      y: 4600,
                    },
                  ],
                  mark_points: [
                    {
                      x: 460,
                      y: 3600,
                      label: '本科线',
                    },
                    {
                      x: 490,
                      y: 2600,
                      label: '当前分数',
                    },
                    {
                      x: 570,
                      y: 900,
                      label: '211',
                    },
                    {
                      x: 620,
                      y: 500,
                      label: '985',
                    },
                  ],
                },
                year: 2022,
              },
            },
            stage_promotion_target: {
              total_improve_score: 100,
              stage_promotion_list: {
                main_attack_list: [
                  {
                    subject_id: 1,
                    subject_name: '语文',
                    score: 80,
                    target_score: 120,
                    improve_score: 40,
                  },
                  {
                    subject_id: 2,
                    subject_name: '数学',
                    score: 90,
                    target_score: 120,
                    improve_score: 30,
                  },
                  {
                    subject_id: 4,
                    subject_name: '物理',
                    score: 70,
                    target_score: 90,
                    improve_score: 20,
                  },
                  {
                    subject_id: 5,
                    subject_name: '化学',
                    score: 60,
                    target_score: 75,
                    improve_score: 15,
                  },
                ],
                non_main_attack_list: [
                  {
                    subject_id: 3,
                    subject_name: '英语',
                    score: 110,
                    target_score: 112,
                    improve_score: 2,
                  },
                  {
                    subject_id: 6,
                    subject_name: '生物',
                    score: 89,
                    target_score: 92,
                    improve_score: 3,
                  },
                ],
              },
              main_improve_score: 70,
            },
            break_through_plan: [
              {
                subject_promotion_info: {
                  subject_id: 1,
                  subject_name: '语文',
                  score: 80,
                  target_score: 120,
                  improve_score: 40,
                },
                copywriting: '作文提高',
              },
              {
                subject_promotion_info: {
                  subject_id: 2,
                  subject_name: '数学',
                  score: 90,
                  target_score: 120,
                  improve_score: 30,
                },
                copywriting: '导数提高',
              },
              {
                subject_promotion_info: {
                  subject_id: 4,
                  subject_name: '物理',
                  score: 70,
                  target_score: 90,
                  improve_score: 20,
                },
                copywriting: '电磁场',
              },
              {
                subject_promotion_info: {
                  subject_id: 5,
                  subject_name: '化学',
                  score: 60,
                  target_score: 75,
                  improve_score: 15,
                },
                copywriting: '有机物',
              },
            ],
            year_events: [
              {
                time: '2023-2-15',
                title: '中考',
                desc: '期中考试',
              },
              {
                time: '2023-6-7',
                title: '高考',
                desc: '全国高考',
              },
            ],
          },
        },
      }
    },
  },
] as MockMethod[]
